﻿using System.Windows.Media;
using iTextSharp.text;
using iTextSharp.text.pdf;

namespace BeeCoders.Tools.Wpf.PdfCanvas.Converters
{
	public static class BaseConverter
	{
		public static void SetStroke(PdfContentByte cb, Brush brush)
		{

			if (brush is SolidColorBrush)
			{
				Color c = ((SolidColorBrush)brush).Color;
				cb.SetRGBColorStroke(c.R, c.G, c.B);
			}
			else
			{
				cb.SetColorStroke(BaseColor.BLUE);


			}
		}
	}
}
